<template>
    <div class="item">
        <div>
            <h4>{{itemObject.No}}</h4>
            <p>{{itemObject.Description}}</p>
            <div class="tags">
                <span :class="[itemObject.HdLevel=='一般隐患'?'orange':'red']">【{{itemObject.HdLevel}}】</span>
                <span class="yellow">【{{itemObject.StateDesc}}】</span>
            </div>
        </div>
        <div>
            <img v-if="itemObject.ProblemImgs[0]"
                 :src="itemObject.ProblemImgs[0]"
                 alt="">
            <img v-else src="@/assets/defaultImg.png"/>
        </div>
    </div>
</template>
<script>
export default {
    props: {
        itemObject: Object
    }
}
</script>
<style scoped>
.item {
    display: flex;
    justify-content: space-between;
}
.item img {
    width: 130px;
    height: 95px;
    border-radius: 8px;
    margin-left: 36px;
    display: block;
}
.item h4 {
    font-size: 14px;
    color: #999;
    line-height: 22px;
}
.item p {
    height: 35px;
    line-height: 18px;
    color: #333;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 14px;
    margin: 2px 0 15px;
}
.item .tags {
    font-size: 12px;
    text-indent: -6px;
}
.item .red {
    color: #ff0000;
}
.item .yellow {
    color: #ffb400;
}
.item .orange {
    color: #ff7333;
}
</style>
